From: Emmanuele Bassi Date: Sun, 11 Feb 2018 14:52:22 +0000 (+0000) Subject: broadway: Cast g_object_ref() to the right type X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~38^2~22 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2de14479b239649504ca4da1729ba926b207e7ab;p=gtk%2B3.0.git broadway: Cast g_object_ref() to the right type In GLib 2.56, g_object_ref() will check that you're assigning the return value to a variable of the same type you're passing in. --- diff --git a/gdk/broadway/broadway-server.c b/gdk/broadway/broadway-server.c index 3d5f29b289..b53f4edf12 100644 --- a/gdk/broadway/broadway-server.c +++ b/gdk/broadway/broadway-server.c @@ -1267,7 +1267,7 @@ handle_incoming_connection (GSocketService *service, } else { - request->connection = g_object_ref (connection); + request->connection = G_IO_STREAM (g_object_ref (connection)); } in = g_io_stream_get_input_stream (request->connection);